﻿@using ETD.Common.Extension;
@using ETD.WebOrganization.Libs.Helper;
@using ETD.WinClient.Config;
@using ETD.Domain.EnumModels;
@using ETD.Domain.WebModels;
@using ETD.WebOrganization.Areas.Web.Models;

@model ModelBase
@{
    HeaderNavModel headerNavModel = new HeaderNavModel();
    if (Model != null)
    {
        headerNavModel = Model.HeaderNav;
    }
}
<style>
    .headerNav {
        background-color: #50d2c2;
        height: 50px;
    }

        .headerNav .weui-flex {
            height: 36px;
            line-height: 36px;
        }

    .headerPhoto {
        height: 26px;
        width: 26px;
        border-radius: 18px;
        margin-right: 20px;
        margin-top: 5px;
    }

    .headerTitle {
        text-align: center;
        color: white;
    }
</style>

<div class="headerNav">
    <div style="height:7px;"></div>
    <div class="weui-flex">
        <div>
            <div class="placeholder">
                <span style="display:block;width:30px;margin-left:20px;"></span>
            </div>
        </div>
        @{
            string title = headerNavModel.Title;
            if (string.IsNullOrEmpty(title))
            {
                title = ViewBag.Title;
            }
        }
        <div class="weui-flex__item headerTitle"><div class="placeholder">@(headerNavModel.Title)</div></div>
        <div>
            <div class="placeholder">
                <a href="@Url.ActionTS("SelfCenterIndex", "SelfCenter")">
                    <img class="headerPhoto" id="btnHederPhoto" src="@Url.MapMvcAssets("NormalImages/me.png")" />
                </a>

            </div>
        </div>
    </div>
</div>
